package org.momo.rpc.registry;

import org.momo.rpc.extention.SPI;
import org.momo.rpc.provider.model.ProviderRegistryInfo;

import java.util.List;


@SPI
public interface ConsumerRegistry extends Registry {

    List<ProviderRegistryInfo> discover(String serviceName, String serviceVersion, String serviceKey);

    boolean canRetry(String serviceName, String serviceVersion, String methodName);

}
